#include "Game.h"

int main()
{
	Game g;

	srand(time(NULL));

	cout << endl << "Game Testing" << endl << endl;

	int i, j, ii, jj = 0;

	while(true)
	{
		ii = rand() % 15 + 1;
		jj = rand() % 15 + 1;

		string d = g.display();

		cout << d;
		cout << hex << ii << jj << endl;
		
		cin >> i;
		cin >> j;

		g.move(i, j, BLACK);
		if(g.check_state() == 1)
		{
			cout << endl << endl;
			cout << "BLACK WINS!!!" << endl;
			break;
		}

		g.move(ii, jj, WHITE);
		if(g.check_state() == 1)
		{
			cout << endl << endl;
			cout << "WHITE WINS!!!" << endl;
			break;
		}
	}

	return 0;
}
